$(function(){
	    
		// 头部导航栏  左栏
		$('#haderNav #haderNav-left span').hover(function(){
			$('#haderNav #haderNav-left dl').show()
			$(this).addClass('haderNav-left-spanActive')
		},function(){
			$('#haderNav #haderNav-left dl').hide()
			$(this).removeClass('haderNav-left-spanActive')
		})
		$('#haderNav #haderNav-left dl').hover(function(){
			$(this).show()
			$('#haderNav #haderNav-left span').addClass('haderNav-left-spanActive')
		},function(){
			$(this).hide()
			$('#haderNav #haderNav-left span').removeClass('haderNav-left-spanActive')
		})
		$('#haderNav #haderNav-left dl dd').each(function(index){
			$(this).hover(function(){
				$('#haderNav #haderNav-left dl dd').removeClass('haderNav-left-ddActive')
				$(this).addClass('haderNav-left-ddActive')
			},function(){
				$(this).removeClass('haderNav-left-ddActive')
			})
		})
		// 头部导航栏  右栏
		$('#haderNav-right dl').each(function(index){
			$(this).hover(function(){
				if(index == 3){
					$('#counts-box').show()
				}
				$(this).find('dt a').addClass('haderNav-right-aActive')
				$(this).find('dd').show().css('background',webkitSpeechRecognitionError)
				$(this).removeClass('haderNav-left-spanActive')
				$(this).addClass('haderNav-left-spanActive')
			},function(){
				if(index == 3){
					$('#counts-box').hide()
				}
				$(this).removeClass('haderNav-left-spanActive')
				$(this).find('dd').hide()
				$(this).find('dt a').removeClass('haderNav-right-aActive')
			})
		})
		
		//banner-Okcard
		$('#banner-Okcard').hover(function(){
			$(this).addClass('Okcard')
			$(this).find('a').addClass('OkcardA')
		},function(){
			$(this).removeClass('Okcard')
			$(this).find('a').removeClass('OkcardA')
		})
		
		//banner-Nav
		$('#bannerNav ul li a').each(function(index){
			$(this).hover(function(){
				$(this).addClass('aActive')
			},function(){
				$(this).removeClass('aActive')
			})
			$(this).click(function(){
				$('#bannerNav ul li a').removeClass('aclick')
				$(this).addClass('aclick')
			})
		})
		$('#header-AD-close').click(function(){
			$('#header-AD').hide()
		})
		
		// banner-body banner-body-list 所有商品列表
		
		
		$('#bannerNav #bannerNav-left dt').hover(function(){
			console.log('sss')
			$('#banner-body-list #banner-body-list-mume').show()
		},function(){
			console.log('sss')
			$('#banner-body-list #banner-body-list-mume').hide()
		})
		

		$('#banner-body-list #banner-body-list-mume dl dd').each(function(index){
			$(this).hover(function(){
				$('#banner-body-list #banner-body-list-mume dl dd').removeClass('banner-list-Active')
				$('#banner-body-list #banner-body-list-mume dl dd').find('a').removeClass('banner-list-aActive')
				$(this).addClass('banner-list-Active')
				$(this).find('a').addClass('banner-list-aActive')
				$('#banner-body-list #banner-body-list-container').show()
				$('#banner-body-list #banner-body-list-container #banner-body-list-content div').hide()
				$('#banner-body-list #banner-body-list-container #banner-body-list-content div').eq(index).show().hover(function(){
					$('#banner-body-list #banner-body-list-mume dl dd').removeClass('banner-list-Active')
				    $('#banner-body-list #banner-body-list-mume dl dd').find('a').removeClass('banner-list-aActive')
					$('#banner-body-list #banner-body-list-container').show()
					$('#banner-body-list #banner-body-list-mume dl dd').eq(index).addClass('banner-list-Active')
				    $('#banner-body-list #banner-body-list-mume dl dd').eq(index).find('a').addClass('banner-list-aActive')
				},function(){
					$('#banner-body-list #banner-body-list-container').hide()
					$('#banner-body-list #banner-body-list-mume dl dd').removeClass('banner-list-Active')
				    $('#banner-body-list #banner-body-list-mume dl dd').find('a').removeClass('banner-list-aActive')
				})
					
			},function(){
				$(this).removeClass('banner-list-Active')
				$(this).find('a').removeClass('banner-list-aActive')
				$('#banner-body-list #banner-body-list-container').hide()
			})
			$('#banner-body-list-container-close').click(function(){
				$('#banner-body-list #banner-body-list-container').hide()
				$('#banner-body-list #banner-body-list-mume dl dd').removeClass('banner-list-Active')
				$('#banner-body-list #banner-body-list-mume dl dd').find('a').removeClass('banner-list-aActive')
			})
		    $('#banner-body-list-AD').hover(function(){
		   	   $('#banner-body-list #banner-body-list-container').show()
		    },function(){
		   	    $('#banner-body-list #banner-body-list-container').hide()
		    })
		})
})
